package com.dongdongshop.ItemController;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dongdongshop.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
public class ItemController {

    @Autowired
    private ItemService itemService;

    @RequestMapping("makeItem")
    @ResponseBody
    public String makeItem(Long id){
        itemService.makeItem(id);
        return "ok";
    }

}
